@mixin align-center($width) {
    left: -50%;
    margin-left: $width/2;
    width: $width;

}

.more-hidden {
    white-space: nowrap;
    overflow: hidden;
}

.more-ellipse {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.prefix {
    display: inline-block;
    margin-right: 5px;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    background-color: $dodger-blue;
    color: white;
    border-radius: $border-radius-small;
}

.search-bar-title {
    font-size: 24px;
    letter-spacing: 3px;
    @media(min-width: $screen-xs-max) {
        font-size: 32px;
    }
    @media(min-width: $screen-md-max) {
        font-size: 40px;
    }
}

.search-panel {
    display: table;
    width: 100%;
    margin-bottom: 10px;
    height: 240px;
    background-color: $dodger-blue-lighter;
    &-inner {
        display: table-cell;
        vertical-align: middle;
    }
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;

    .pagination-sm {
        margin-top: 0;
    }
}

.talent-list {
    padding: 0 10px;
    list-style: none;
    &::after {
        display: block;
        position: relative;
        top: -1px;
        width: 100%;
        border: 1px solid #fff;
    }

    &-tabs {
        position: relative;
        margin-top: 40px;
        height: 45px;
        text-align: right;
        border-bottom: 1px solid $hr-color;

        .nav-tabs {
            height: 45px;
            overflow: hidden;
            .uib-tab {
                border: none !important;
                padding: 0;
                margin: 0 0 -1px;
                &:nth-child(2) {
                    margin: 0 40px;
                    @media (max-width: $screen-xs-max) {
                        margin: 0 10px;
                    }
                }

                &.active, &:hover {
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    font-weight: bold;
                    & > a, & > a:hover {
                        color: $dodger-blue;
                        border: none;
                    }
                }
            }

            > li {
                width: auto !important;
                > a {
                    top: 0;
                    padding: 0 2px 15px !important;
                    margin-right: 0;
                    border: none;
                    background-color: transparent;
                }
            }
        }

        .meta-banner-white-reverse {
            margin-top: -80px;
        }
    }

    .item {
        margin: 20px auto;
        height: 110px;
        overflow: hidden;

        @media(min-width: $screen-sm-min) {
            width: 173px;
            height: 290px;
            margin: 40px auto;
        }

        @media(min-width: $screen-lg-min) {
            width: 240px;
            height: 355px;
            margin: 40px auto;
        }

        &-inner {
            @media(max-width: $screen-xs-max) {
                width: 120px;
            }
        }

        &-container {
            text-align: center;
            border-bottom: 1px solid $hr-color;
        }

        &-img {
            width: 100%;
            min-width: 105px;
            height: 105px;
            background: no-repeat center center;
            background-size: cover;
            overflow: hidden;

            @media(min-width: $screen-sm-min) {
                height: 153px;
            }

            @media(min-width: $screen-lg-min) {
                height: 220px;
            }
        }

        &-caption {

            p {
                height: 20px;
                margin: 9px 0;
                white-space: nowrap;
                overflow: hidden;

                @media(max-width: $screen-xs-max) {
                    text-align: left;
                }

                &.label-container {
                    height: 25px;
                    white-space: normal;
                }
            }
        }

        &-detail {

            p {
                margin: 10px 0;
                white-space: nowrap;
                overflow: hidden;

                @media(max-width: $screen-xs-max) {
                    text-align: left;
                }
            }
        }
    }

    .label {
        display: inline-block;
        padding: 3px 5px;
        margin: 0 3px 5px;
        border-radius: $border-radius-small;
        background-color: $dodger-blue-lighter;
        color: $gray-6;
        font-weight: normal;
    }

    .nullHint {
        padding: 30px 0;
        text-align: left;
    }
}

.btn {

    &-favorite, &-page, &-more {
        height: 30px;
        line-height: 28px;

        @media (max-width: $screen-xs-max) {
            float: left;
        }
    }

    &-page {
        min-width: 100px;
    }

    &-more {
        margin-bottom: 20px;
    }

    &-favorite {
        color: $dodger-blue;
        margin-right: 10px;
        @media (max-width: $screen-md-max) {
            float: left;
            padding: 0;
            margin-left: 10px;
            width: 30px;
            border-color: transparent;
        }
        @media(max-width: $screen-xs-max) {
            margin-right: 10px;
        }
    }
    &-previous, &-next {
        margin: 20px 20px 0;
        height: 36px;
    }
}

.border-bottom-invisible {
    border-color: transparent !important;
}

.talent-result {
    padding: 50px 20px 80px;
    .item {
        margin: 20px auto;
        &-img {
            width: 100%;
            @media(max-width: $screen-xs-max) {
                width: 105px;
            }
        }
        &-detail {
            p {
                margin: 10px 0;
                white-space: nowrap;
                overflow: hidden;
                @media(max-width: $screen-xs-max) {
                    //text-align: left;
                }
            }
        }
    }
    &-tabs {
        .nav-tabs {
            height: 25px;
            overflow: hidden;
            border-bottom: none !important;
            .uib-tab {
                border: none !important;
                padding: 0;
                margin: 0 0 -1px;
                &.active, &:hover {
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    border-bottom: none !important;
                    & > a, & > a:hover {
                        color: $gray-3;
                        border: none;
                    }
                }
                &:nth-child(1) {
                    &.active > a, &.active > a:hover {
                        color: $gray-3;
                    }
                    & > a, & > a:hover {
                        color: $dodger-blue;
                    }
                }
                &:nth-child(2) > a {
                    font-size: 16px;
                    line-height: 28px;
                }
            }
            > li {
                width: auto !important;
                > a {
                    top: 0;
                    padding: 0 2px 0 !important;
                    margin-right: 0;
                    border: none;
                    background-color: transparent;
                }
            }
        }
        .tab-pane {
            .title {
                padding-top: 20px;
            }
        }
    }

    .list {
        &-outter {
            list-style: none;
            padding: 0;
        }
    }

    &-list {
        //padding: 0 30px;
        > .col-xs-12 {
            padding: 0;
        }
        .list-outter {
            margin-bottom: 0;
            height: 440px !important;
            overflow-y: scroll;
        }
        .item {
            margin: 0;
            padding: 8px 10px;
            height: 46px;
            line-height: 30px;
            border-bottom: 1px solid $hr-color;
            &:last-child {
                border-bottom-color: transparent;
            }
            .prefix {
                background-color: transparent;
                color: $gray-3;
            }
            &.active-next {
                @media(max-width: $screen-xs-max) {
                    //border-bottom-color: transparent;
                }
            }
            &.active {
                @media(max-width: $screen-xs-max) {
                    background-color: $dodger-blue-lighter;
                    //border-bottom-color: transparent;
                }
                .prefix {
                    //@media(min-width: $screen-sm-min) {
                    background-color: $dodger-blue;
                    color: white;
                    border-radius: $border-radius-small;
                    //}
                }
            }
        }
    }

    &-detail {
        padding: 0 30px;
        @media(min-width: $screen-sm-min) {
            //border-left: 1px solid $hr-color;
        }
        &.none {
            @media(min-width: $screen-sm-min) {
                border-left: none;
            }
        }
        .title {
            max-height: 153px;
            margin-bottom: 30px;
            .item-img {
                float: left;
                margin-right: 20px;
                width: 105px;
                height: 105px;
                border-radius: $border-radius-small;
                background: no-repeat center center;
                @media(min-width: $screen-xs-max) {
                    width: 153px;
                    height: 153px;
                }
            }
            .label {
                display: inline-block;
                padding: 3px 2px;
                margin: 0 3px 5px;
                border-radius: $border-radius-small;
                background-color: $dodger-blue-lighter;
                color: $gray-6;
                font-weight: normal;
            }
        }
        .item {
            margin: 0;
            padding: 20px 0 10px;
            border-top: 1px solid transparent;
            border-bottom: 1px solid $hr-color;
            &:last-child {
                border-bottom-color: transparent;
            }
            &-title {
                font-size: $font-size-S;
                margin-bottom: 20px;
            }
            &-body {
                //max-height: 40px;
                //overflow: hidden;
                color: $gray-9;
                table {
                    table-layout: fixed;
                    tbody th {
                        width: 10%;
                    }
                }
            }
            .highlight {
                color: red;
                font-style: normal;
            }
        }
        .loading {
            font-size: 50px;
        }
    }

    .list {
        &-count {
            color: $gray-6;
            margin-bottom: -10px;
        }
    }

    .panel {
        background-color: transparent;
        box-shadow: none;
        &-body {
            padding: 0;
        }
        &-heading {
            text-align: center;
            font-weight: bold;
            border-bottom-color: rgba(31, 134, 237, 0.25);
            p {
                margin: 0;
            }
        }
    }

}

.modal-content {
    .highlight {
        color: red;
        font-style: normal;
    }
    th {
        width: 10%;
    }
}
